﻿using MT.CustomUserControl.Models;
using MT.CustomUserControl.ViewModels;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;

namespace MT.CustomUserControl.Views
{
    /// <summary>
    /// MultiComboxUserControl.xaml 的交互逻辑
    /// </summary>
    public partial class MultiComboxUserControl : UserControl
    {
        //定义ComboxWidth的宽度
        [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)]
        [TypeConverter(typeof(LengthConverter))]
        public double ComboxWidth
        {
            get { return (double)GetValue(ComboxWidthProperty); }
            set { SetValue(ComboxWidthProperty, value); }
        }

        public static readonly DependencyProperty ComboxWidthProperty = DependencyProperty.Register("ComboxWidth", typeof(double), typeof(MultiComboxUserControl), new PropertyMetadata(null));

        public MultiComboxUserControl()
        {
            InitializeComponent();
        }
    }
}
